package org.zhaya.sdk.processors.condition;

import io.logz.sawmill.Condition;
import io.logz.sawmill.Doc;
import io.logz.sawmill.annotations.ConditionProvider;
import io.logz.sawmill.parser.ConditionParser;
import lombok.Data;

import java.util.Map;

@ConditionProvider(type = "defaultCondition", factory = DefaultCondition.Factory.class)
public class DefaultCondition implements Condition {


    @Override
    public boolean evaluate(Doc doc) {
        return true;
    }

    public static class Factory implements Condition.Factory {

        @Override
        public DefaultCondition create(Map<String, Object> config, ConditionParser conditionParser) {

            return new DefaultCondition();
        }

    }

    @Data
    public static class Configuration {
        private String defaultType;

    }
}